用apache+mod_fcgid部署redmine 3.4.4 报错记录
{
CentOS6 
Apache 2.2 
mod_fcgid-2.3
    
/usr/lib64/ruby/gems/2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/connection_specification.rb:248:in `resolve_symbol_connection': 'development' database is not configured. Available: ["production"] (ActiveRecord::AdapterNotSpecified)
        from /usr/lib64/ruby/gems/2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/connection_specification.rb:211:in `resolve_connection'
        from /usr/lib64/ruby/gems/2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/connection_specification.rb:139:in `resolve'
        from /usr/lib64/ruby/gems/2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/connection_specification.rb:169:in `spec'
        from /usr/lib64/ruby/gems/2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_handling.rb:50:in `establish_connection'
        from /usr/lib64/ruby/gems/2.4.0/gems/activerecord-4.2.8/lib/active_record/railtie.rb:120:in `block (2 levels) in <class:Railtie>'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/lazy_load_hooks.rb:44:in `each'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
        from /usr/lib64/ruby/gems/2.4.0/gems/activerecord-4.2.8/lib/active_record/base.rb:315:in `<module:ActiveRecord>'
        from /usr/lib64/ruby/gems/2.4.0/gems/activerecord-4.2.8/lib/active_record/base.rb:26:in `<top (required)>'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
        from /var/www/redmine/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
        from /var/www/redmine/config/initializers/00-core_plugins.rb:12:in `eval'
        from /var/www/redmine/config/initializers/00-core_plugins.rb:12:in `block in <top (required)>'
        from /var/www/redmine/config/initializers/00-core_plugins.rb:2:in `each'
        from /var/www/redmine/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `block in load'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
        from /usr/lib64/ruby/gems/2.4.0/gems/railties-4.2.8/lib/rails/engine.rb:652:in `block in load_config_initializer'
        from /usr/lib64/ruby/gems/2.4.0/gems/activesupport-4.2.8/lib/active_support/notifications.rb:166:in `instrument'
        from /usr/lib64/ruby/gems/2.4.0/gems/railties-4.2.8/lib/rails/engine.rb:651:in `load_config_initializer'
        from /usr/lib64/ruby/gems/2.4.0/gems/railties-4.2.8/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
        from /usr/lib64/ruby/gems/2.4.0/gems/railties-4.2.8/lib/rails/engine.rb:615:in `each'
        from /usr/lib64/ruby/gems/2.4.0/gems/railties-4.2.8/lib/rails/engine.rb:615:in `block in <class:Engine>'
        from /usr/lib64/ruby/gems/2.4.0/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `instance_exec'
        from /usr/lib64/ruby/gems/2.4.0/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `run'
        from /usr/lib64/ruby/gems/2.4.0/gems/railties-4.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
        from /usr/lib64/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
        from /usr/lib64/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
        from /usr/lib64/ruby/2.4.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
        from /usr/lib64/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
        from /usr/lib64/ruby/2.4.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
        from /usr/lib64/ruby/gems/2.4.0/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `each'
        from /usr/lib64/ruby/gems/2.4.0/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `tsort_each_child'
        from /usr/lib64/ruby/2.4.0/tsort.rb:415:in `call'
        from /usr/lib64/ruby/2.4.0/tsort.rb:415:in `each_strongly_connected_component_from'
        from /usr/lib64/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
        from /usr/lib64/ruby/2.4.0/tsort.rb:347:in `each'
        from /usr/lib64/ruby/2.4.0/tsort.rb:347:in `call'
        from /usr/lib64/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
        from /usr/lib64/ruby/2.4.0/tsort.rb:226:in `tsort_each'
        from /usr/lib64/ruby/2.4.0/tsort.rb:205:in `tsort_each'
        from /usr/lib64/ruby/gems/2.4.0/gems/railties-4.2.8/lib/rails/initializable.rb:54:in `run_initializers'
        from /usr/lib64/ruby/gems/2.4.0/gems/railties-4.2.8/lib/rails/application.rb/var/www/redmine/config/environment.rb:352:in `initialize!'
        from /var/www/redmine/config/environment.rb:14:in `<top (required)>'
        from /var/www/redmine/public/dispatch.fcgi:4:in `require'
        from /var/www/redmine/public/dispatch.fcgi:4:in `<main>'
        
        

在配置文件中添加环境变量
/var/www/redmine/config/boot.rb      
ENV['RAILS_ENV'] = 'production'

}

{
    
redmine 使用redmine_gitlab_hook 与gitlab集成错误

测试报错
gitlab报错
{
Hook executed successfully but returned HTTP 500
Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

Back


redmine中报错

Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.9ms)

TypeError (Local repository path is not set):
  plugins/redmine_gitlab_hook/app/controllers/gitlab_hook_controller.rb:145:in `create_repository'
  plugins/redmine_gitlab_hook/app/controllers/gitlab_hook_controller.rb:129:in `find_repository'
  plugins/redmine_gitlab_hook/app/controllers/gitlab_hook_controller.rb:11:in `index'

  
  
Completed 500 Internal Server Error in 34ms (ActiveRecord: 3.6ms)

TypeError (Project 'Jfirst' ('jfirst') has no repository):
  plugins/redmine_gitlab_hook/app/controllers/gitlab_hook_controller.rb:133:in `find_repository'
  plugins/redmine_gitlab_hook/app/controllers/gitlab_hook_controller.rb:11:in `index'
  

修复 
sed  -i  's/plugin_redmine_gitlab_hook/redmine_gitlab_hook/' gitlab_hook_controller.rb
  

}
    
    
}

       